﻿using System;

namespace gixoom.Target.WcfWsHttp
{
    internal static class Ensure
    {
        internal static void ArgumentNotNull(object argument, string name)
        {
            if (argument == null)
            {
                throw new ArgumentNullException(name, "Cannot be null");
            }
        }

        internal static void StringArgumentNotEmpty(string argument, string name)
        {
            if (argument == string.Empty)
            {
                throw new ArgumentException("String argument cannot be empty", name);
            }
        }
    }
}
